package com.ostrich.cloud.ostrichUserService.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ostrich.cloud.common.result.PageResult;
import com.ostrich.cloud.ostrichUserService.infra.model.Rider;
import com.ostrich.cloud.ostrichUserService.infra.model.UserParent;
import com.ostrich.ostrichUserService.dto.RiderDto;
import com.ostrich.ostrichUserService.param.LoginCusParam;
import com.ostrich.ostrichUserService.param.rider.RegRider;
import com.ostrich.ostrichUserService.param.rider.UpdateRider;

/**
 * <p>
 * 骑手表 服务类
 * </p>
 *
 * @author Lucas
 * @since 2022-10-26
 */
public interface RiderService extends IService<Rider> {

    void riderRegister(RegRider rider);

    void updateRiderState(Integer riderId, String status);

    UserParent businessmanLogin(LoginCusParam loginCusParam);

    PageResult<RiderDto> getSAllRider(Integer current, Integer size, String status,Integer businessmanId);

    void addMoney(Integer riderId, Double money);

    Double getCustomerLocByRider(String latitude, String logitud, Integer customerLocationId);

    void updateRider(Rider updateRider);

}
